Skip to content

Conversation

balaraj74
Copy link

Description

This PR adds comprehensive documentation for the TextFileReader class and its methods, addressing issue #62574.

Changes Made:

  • Enhanced TextFileReader class docstring with detailed parameters section, comprehensive examples (basic iteration, chunksize usage, and context manager pattern), and cross-references to related functions
  • Added complete docstrings to public methods:
    • close(): Added docstring explaining resource cleanup with examples
    • read(): Added docstring with parameters, returns, raises sections, and examples
    • get_chunk(): Added docstring with parameters, returns, raises sections, and examples
  • Updated doc/source/reference/io.rst to include TextFileReader, TextFileReader.read, TextFileReader.get_chunk, and TextFileReader.close in the API reference
  • Added entry to doc/source/whatsnew/v3.0.0.rst documenting this improvement

Documentation Improvements:

  • All docstrings follow NumPy-style format
  • Included practical examples showing real-world usage patterns
  • Added appropriate cross-references to related functions (read_csv, read_table)
  • Documented all parameters, return values, and exceptions

Closes #62574

Checklist:

balaraj74 and others added 4 commits September 20, 2025 23:30
…-dev#62357)

- Added links to user guide/reshaping in function docstrings
- Added cross-references between related functions
- Improved example formatting and clarity
- Updated docstring formatting per pandas standards
…-dev#62574)

- Enhanced TextFileReader class docstring with detailed examples and parameters
- Added docstrings to public methods: close(), read(), and get_chunk()
- Added TextFileReader methods to API reference (io.rst)
- Updated whatsnew for v3.0.0

Closes pandas-dev#62574
@balaraj74 balaraj74 requested a review from Dr-Irv as a code owner October 4, 2025 16:48
@Dr-Irv
Copy link
Contributor

Dr-Irv commented Oct 4, 2025

There are way too many files changed in this PR. Also, it seems generated by AI, and we don't accept AI contributions.

@Dr-Irv Dr-Irv closed this Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOC: class TextFileReader not documented as a class

2 participants